package com.example.aop.proxy1;


public class Main {
    public static void main(String[] args) {
//        静态代理
        HouseProxy proxy = new HouseProxy(new RealHouseSubject());
        proxy.rentHouse();
        System.out.println("========================");
        HouseSubject houseSubject = new RealHouseSubject();
        houseSubject.rentHouse();
    }
}
